package com.ruoyi.web.controller.creditlife;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.creditlife.domain.BookBorrrowRecord;
import com.ruoyi.creditlife.domain.BookInfo;
import com.ruoyi.creditlife.service.IBookInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;



/**

 * 图书信息

 Controller

 *

 * @author ddd

 * @date 2025-07-10

 */

@RestController

@RequestMapping("/creditlife/Bookinfo")

public class BookInfoController extends BaseController

{

    @Autowired
    private IBookInfoService bookInfoService;

    @PreAuthorize("@ss.hasPermi('creditlife:borrowRecord')")
    @GetMapping("/list")
    public TableDataInfo list(BookBorrrowRecord bookBorrrowRecord)
    {
        List<BookInfo> list = bookInfoService.BookInfoList();
        return getDataTable(list);
    }



}
